<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <script type='text/javascript' src='http://localhost/C39/waimai/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/C39/waimai/hdphp/hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<link href='http://localhost/C39/waimai/hdphp/hdjs/css/hdvalidate.css' rel='stylesheet' media='screen'>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/hdjs.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/hdvalidate.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/slide.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
COMMON = '<?php echo $GLOBALS['user']['COMMON'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
MODULE = '<?php echo $GLOBALS['user']['MODULE'];?>';
CONTROLLER = '<?php echo $GLOBALS['user']['CONTROLLER'];?>';
ACTION = '<?php echo $GLOBALS['user']['ACTION'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
VIEW = '<?php echo $GLOBALS['user']['VIEW'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
CONTROLLERVIEW = '<?php echo $GLOBALS['user']['CONTROLLERVIEW'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
</script>
    <link href='http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>
<script src='http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js'></script>
                <!--[if lte IE 6]>
                <link rel="stylesheet" type="text/css" href="http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
                <script src="http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
                <![endif]-->
</head>
<body>
<style type="text/css">
    select{border:solid 1px #eee;border-radius: 5px;}
</style>
<div class="wrap">

<div class="page-header">
  <h3>修改商品<small>ALTER the shop</small></h3>
</div>
   
<form action="" method="post" enctype="multipart/form-data">
   <table class="table table-bordered">
          <tr>
           <td><label for="exampleInputEmail1">商品名称</label></td>
           <td><input type="text" name="shopname" class="form-control" id="exampleInputEmail1" value='<?php echo $oldData['shopname'];?>'></td>
           <td><p class="help-block">1-20个字节</p></td>
      </tr>

      <tr>
           <td><label for="exampleInputEmail1">商品价格</label></td>
           <td><input type="text" name="price" class="form-control" id="exampleInputEmail1" value="<?php echo $oldData['price'];?>"></td>
           <td><p class="help-block">请输入商品的价格</p></td>
      </tr>

      <tr>
            <td><label for="exampleInputEmail1">商品缩略图</label></td>
            <td><input type="file" name="img" id="exampleInputFile">
            <div class="row" style="float:left;margin-top:5px;">
              <div class="col-xs-6 col-md-3">
                <a href="#" class="thumbnail">
                  <img src="http://localhost/c39/waimai/<?php echo $oldData['img'];?>" >
                </a>
              </div>
            </div>
            </td>
            <td><p class="help-block">上传商品缩略图</p></td>
        </tr>

   </table>
   
        <input type="hidden" name="sid" value="<?php echo $oldData['sid'];?>">
        <input type="hidden" name="mid" value="<?php echo $oldData['mid'];?>">
         <button type="submit" class="btn btn-primary">提交</button>
      
    </form>
</div>
</body>
</html>